package cn.btks.backstagemanage.user.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @Author: zh
 * @Description: 系统登录日志记录实体类
 * @DateTime: 2024/11/13 17:05
 **/
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class LoginRecord {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String userName;

    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date loginTime;

}
